home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / QuickTime / Show Movie / Sources / MoviePrefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-20  |  1.7 KB  |  56 lines  |  [TEXT/MPCC]

  1. /*
  2.   File:            MoviePrefs.h
  3.   Contains:        Movie prefereneces routine's headers and data structures
  4.   Written by:    Jason Hodges-Harris & Don Swatman
  5.   Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  6. */
  7.  
  8. #ifndef __MOVIEPREFS__
  9. #define __MOVIEPREFS__
  10.  
  11. #include <Types.h>
  12.  
  13. //==============================================
  14. // MovieOptionsType
  15. //
  16. // Deals with various options used to set up the
  17. // movies.
  18. //==============================================
  19.  
  20. #define    kAutoCloseWind true
  21. #define    kUserCloseWind false
  22.  
  23. #define    kHasMovieController true
  24. #define    kNoMovieController  false
  25.  
  26. struct MovieOptionsType
  27. {
  28.     Boolean closeAtEnd;      // Automatically close window when movie finishes playing    
  29.     Boolean hasController;   // Movie has a controller
  30.     Boolean do20to10Loop;    // Do a loop
  31.     short   loopFrom;        //   Where to start loop in seconds
  32.     short   loopTo;          //   Where loop should go to in seconds
  33.     short   rateChangeDelay; // When the movie rate should change (0 = no changes ) in seconds
  34.     short   slaveAheadBy;    // Time slave is ahead of master in seconds
  35.     short   slaveStartDelay; // Time master must run before slave starts in seconds
  36. };
  37. typedef struct MovieOptionsType MovieOptionsType,
  38.     *MovieOptionsPtr, **MovieOptionsHdl;
  39.  
  40. //----------------------------------------------
  41. // Globals
  42. //----------------------------------------------
  43. extern MovieOptionsType gDefaultMoviePrefs;  // Global for the default prefences
  44.  
  45. //----------------------------------------------
  46. // Prototypes
  47. //----------------------------------------------
  48. void SetUpDefaultMoviePref ( MovieOptionsType *theOptions );
  49.  
  50. OSErr OneMoviePref( MovieOptionsType *theOptions,
  51.                                         Boolean hasSlaveMovie );
  52.  
  53. void InitMoviePrefs(void);
  54. void KillMoviePrefs(void);
  55.  
  56. #endif